package com.numberone.iotplatform.dto;

import com.numberone.iotplatform.entity.Location;
import lombok.Data;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.List;

@Data
public class DeviceDetailDTO {
    // --- 静态台账信息 (Tab: 详细信息) ---
    private Long id;
    private String name;
    private String deviceUid;
    private String sn;
    private String model;
    private String ipAddress;
    private Integer port;
    private String description;
    private String maintainer;
    private LocalDate installDate;
    private String locationName;
    private List<String> photos;
    private LocalDateTime createdAt;
    private LocalDate productionDate;
    private LocalDateTime updatedAt;

    private Location location;

    // --- 动态运行状态 (Tab: 运行状态) ---
    private String status;
    private LocalDateTime lastOnline;
    private String hardwareVersion;
    private String softwareVersion;
    private Double cpuUsage; // CPU 使用率
    private Double memoryUsage; // 内存使用率
    private String runtimeDuration; // 运行时长

    // --- 视频通道信息 (Tab: 视频通道) ---
    private List<ChannelDTO> channels;

    // --- 模型列表信息 (Tab: 模型列表) ---
    private List<String> aiModels;
}